<?php

namespace App\Http\Requests\Traits;

trait PostAttributes
{
    /**
     * Get custom attributes for validator errors.
     *
     * @return array
     */
    public function attributes()
    {
        return [
            'title'        => '标题',
            'slug'         => 'URL标识',
            'publish_date' => '发布日期',
            'body'         => '内容',
        ];
    }
}
